const serviceModule = {
  // 钉钉免登录
  login: {
    url: '/login',
    method: 'post'
  },

  // 检测工厂树id是是否存在
  factoryTreeCheck: {
    url: '/factory/tree/check/',
    method: 'get'
  },

  // 获取短信验证码
  sendSms: {
    url: '/sendSms',
    method: 'post'
  },

  // 登录-验证短信验证码
  verifyCode: {
    url: '/verifyCode',
    method: 'post'
  },

  // 物料查询
  mateDataMaterialQuery: {
    url: '/mateData/materialQuery',
    method: 'post'
  },

  // 获取⼯艺关键参数、质检指标
  mateDataPropertyQuery: {
    url: '/mateData/property/query',
    method: 'post'
  },

  // 人员物料生产设备元数据
  mateDataRecordQuery: {
    url: '/mateData/record/query',
    method: 'post'
  },

  // 经营驾驶舱报表
  quickBIUrl: {
    url: '/quickBI/url/query',
    method: 'post'
  },

  // 查询指标展示数据
  dashboardIndicatorDisplay: {
    url: '/dashboard/indicator/display',
    method: 'post'
  },

  // 查询⽤户可⻅指标
  dashboardVisibleIndicatorList: {
    url: '/dashboard/visible/indicator/list',
    method: 'post'
  },

  // 工厂树
  factoryTree: {
    url: '/factory/tree',
    method: 'post'
  },

  // 工艺树
  technicsTree: {
    url: '/technics/tree',
    method: 'post'
  },

  // 查询指定有效⽇期的⼯⼚⽇历配置
  factoryCalendarGetbydate: {
    url: '/factoryCalendar/getbydate',
    method: 'post'
  },

  // 判断指定时间点⼯⼚⽇历是否安排了计划停产
  factoryCalendarPlannedShutdownIsByTime: {
    url: '/factoryCalendar/plannedShutdown/isByTime',
    method: 'post'
  },

  // 获取给定时间段内的⼯⼚⽇历⽇类型
  factoryCalendarQueryDayType: {
    url: '/factoryCalendar/queryDayType',
    method: 'post'
  },

  // 根据ID查询班次记录
  factoryCalendarShiftGetById: {
    url: '/factoryCalendar/shift/getById',
    method: 'post'
  },

  // 新增班次管理记录
  factoryCalendarShiftAdd: {
    url: '/factoryCalendar/shift/add',
    method: 'post'
  },

  // 更新班次管理记录
  factoryCalendarShiftUpdate: {
    url: '/factoryCalendar/shift/update',
    method: 'post'
  },

  // 删除班次管理记录
  factoryCalendarShiftDelete: {
    url: '/factoryCalendar/shift/delete',
    method: 'post'
  },

  // 获取指定时间点⽣效的⼯⼚⽇历班次
  factoryCalendarShiftGetByTime: {
    url: '/factoryCalendar/shift/getByTime',
    method: 'post'
  },

  // 分⻚查询⼯⼚⽇历班次列表信息
  factoryCalendarShiftQuery: {
    url: '/factoryCalendar/shift/query',
    method: 'post'
  },

  // 分⻚查询⼯⼚⽇历计划停产管理列表信息
  factoryCalendarPlanQuery: {
    url: '/factoryCalendar/plannedShutdown/query',
    method: 'post'
  },

  // 新增计划停产管理记录
  factoryCalendarPlanAdd: {
    url: '/factoryCalendar/plannedShutdown/add',
    method: 'post'
  },

  // 更新计划停产管理记录
  factoryCalendarPlanUpdate: {
    url: '/factoryCalendar/plannedShutdown/update',
    method: 'post'
  },

  // 删除计划停产管理记录
  factoryCalendarPlanDelete: {
    url: '/factoryCalendar/plannedShutdown/delete',
    method: 'post'
  },

  // 获取计划停产管理记录详情
  factoryCalendarPlanGetById: {
    url: '/factoryCalendar/plannedShutdown/getById',
    method: 'post'
  },

  // 添加物料消耗
  materialConsumptionAdd: {
    url: '/materialConsumption/add',
    method: 'post'
  },

  // 删除物料消耗
  materialConsumptionDelete: {
    url: '/materialConsumption/delete',
    method: 'post'
  },

  // 查询物料消耗
  materialConsumptionQuery: {
    url: '/materialConsumption/query',
    method: 'post'
  },

  // 修改物料消耗
  materialConsumptionUpdate: {
    url: '/materialConsumption/update',
    method: 'post'
  },

  // 添加⽣产报⼯
  productionReportAdd: {
    url: '/productionReport/add',
    method: 'post'
  },

  // 删除报⼯
  productionReportDelete: {
    url: '/productionReport/delete',
    method: 'post'
  },

  // 分⻚查询报⼯
  productionReportPageQuery: {
    url: '/productionReport/pageQuery',
    method: 'post'
  },

  // 查询报⼯详情
  productionReportQuery: {
    url: '/productionReport/query',
    method: 'post'
  },

  // 更新⽣产报⼯
  productionReportUpdate: {
    url: '/productionReport/update',
    method: 'post'
  },

  // 添加质检记录
  qualityControlAdd: {
    url: '/qualityControl/add',
    method: 'post'
  },

  // 删除质检记录
  qualityControlDelete: {
    url: '/qualityControl/delete',
    method: 'post'
  },

  // 添加质检结果
  qualityControlGradeAdd: {
    url: '/qualityControl/grade/add',
    method: 'post'
  },

  // 删除质检结果
  qualityControlGradeDelete: {
    url: '/qualityControl/grade/delete',
    method: 'post'
  },

  // 查询质检结果
  qualityControlGradeQuery: {
    url: '/qualityControl/grade/query',
    method: 'post'
  },

  // 修改质检结果
  qualityControlGradeUpdate: {
    url: '/qualityControl/grade/update',
    method: 'post'
  },

  // 查询质检记录
  qualityControlQuery: {
    url: '/qualityControl/query',
    method: 'post'
  },

  // 更新质检记录
  qualityControlUpdate: {
    url: '/qualityControl/update',
    method: 'post'
  },

  // 获取总产量
  qualityControlOutput: {
    url: '/qualityControl/output',
    method: 'post'
  },
}

const ApiSetting = {
  ...serviceModule
}

export default ApiSetting